package com.example.testlib

// Kotlin 单例写法
class SingleTon private constructor() {
    companion object {
        fun getInstance(): SingleTon {
            return SingleTonHolder.instance
        }
    }

    private object SingleTonHolder {
        val instance = SingleTon()
    }
}